<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/vehiclePath.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('vehiclePath_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/vehiclePath.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="vehiclePath_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef VEHICLEPATH_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define VEHICLEPATH_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="edgeSol_8h.html">edgeSol.h</a>&quot;</span>
<a name="l00006"></a>00006 
<a name="l00009"></a><a class="code" href="vehiclePath_8h.html#a14aeedd84bdd2acd01551fcaae8cbdfc">00009</a> <span class="preprocessor">#define EDGE_NOT_FOUND -2</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00012"></a><a class="code" href="vehiclePath_8h.html#a4ad620aee0cef5306fb2c43bf1439ee4">00012</a> <span class="preprocessor">#define EDGE_REMOVED -1</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a><a class="code" href="vehiclePath_8h.html#a66afaa222e9f7220cea1cb9320e5c9e1">00014</a> <span class="preprocessor">#define NOT_PASSED 0</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a><a class="code" href="vehiclePath_8h.html#a15a62c43d16e6ba1cf426c328a2e50b9">00016</a> <span class="preprocessor">#define DIRECTION_NEXT 1</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a><a class="code" href="vehiclePath_8h.html#a96914b88bef25906285283404b762215">00018</a> <span class="preprocessor">#define DIRECTION_PREV 0</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00022"></a><a class="code" href="structVehiclePath.html">00022</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structVehiclePath.html">VehiclePath</a> {
<a name="l00024"></a><a class="code" href="structVehiclePath.html#aca8729236cd9e2f5cd3c779391e3d78c">00024</a>         <span class="keyword">struct </span><a class="code" href="structVehiclePath.html">VehiclePath</a>* <a class="code" href="structVehiclePath.html#aca8729236cd9e2f5cd3c779391e3d78c">prev</a>;
<a name="l00026"></a><a class="code" href="structVehiclePath.html#ad9dbecfcc39f2a0f3a192b6e5807eee1">00026</a>         <span class="keyword">struct </span><a class="code" href="structVehiclePath.html">VehiclePath</a>* <a class="code" href="structVehiclePath.html#ad9dbecfcc39f2a0f3a192b6e5807eee1">next</a>;
<a name="l00028"></a><a class="code" href="structVehiclePath.html#a340b3520b995872d087955d4f08b61ad">00028</a>         <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="structVehiclePath.html#a340b3520b995872d087955d4f08b61ad">edge</a>;
<a name="l00029"></a>00029 } <a class="code" href="vehiclePath_8h.html#aeeef84de48fef30c32b0f727fff7133c">VehiclePath</a>;
<a name="l00030"></a>00030 
<a name="l00032"></a><a class="code" href="vehiclePath_8h.html#a7ea405f144cc006ea3fe96d97cb01ccd">00032</a> <span class="keyword">typedef</span> <a class="code" href="structVehiclePath.html">VehiclePath</a>* <a class="code" href="vehiclePath_8h.html#a7ea405f144cc006ea3fe96d97cb01ccd">PvehiclePath</a>;
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~COSTRUTTORI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00043"></a>00043 <span class="comment"></span><a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="vehiclePath_8h.html#a95c3e86e73eed5d981cc015518d6dd9b">initVehiclePathCustomized</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> _prev, <a class="code" href="structEdgeSol.html">PedgeSol</a> _edge, <a class="code" href="structVehiclePath.html">PvehiclePath</a> _next);
<a name="l00044"></a>00044 
<a name="l00050"></a>00050 <a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="vehiclePath_8h.html#a1ec6212e25361176dcd62a2f58c420e1">initVehiclePath</a>();
<a name="l00051"></a>00051 
<a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="vehiclePath_8h.html#ac966ce6e2e52a4143b73f33180669657">freeVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00058"></a>00058 
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="vehiclePath_8h.html#a0afbc980177c0c1bd7f8933b18fce3b9">freeVehiclePathHard</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00068"></a>00068 
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="vehiclePath_8h.html#a6201604769114c3a461e81d1e117970f">freeVehiclePathLight</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00077"></a>00077 
<a name="l00110"></a>00110 <a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="vehiclePath_8h.html#a9b67e16fbea9be9d944f34adb51ee3b8">cloneVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00111"></a>00111 
<a name="l00146"></a>00146 <a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="vehiclePath_8h.html#afed2def948ad2051f40317e36661c200">cloneVehiclePathHard</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~OPERAZIONI~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00163"></a>00163 <span class="comment"></span><span class="keywordtype">bool</span> <a class="code" href="vehiclePath_8h.html#a2c08b83d4d4a50bffdbb0da89ea49601">addEdgeToVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structVehiclePath.html">PvehiclePath</a> pvp);
<a name="l00164"></a>00164 
<a name="l00179"></a>00179 <span class="keywordtype">void</span> <a class="code" href="vehiclePath_8h.html#abc927d30b48959e9e14dfa4cf17440a1">addEdgeSolInVehiclePathCustomized</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> pvp,<a class="code" href="structEdgeSol.html">PedgeSol</a> e);
<a name="l00180"></a>00180 
<a name="l00199"></a>00199 <span class="keywordtype">int</span> <a class="code" href="vehiclePath_8h.html#af1cac7fa7f6ad7e16deb287d8db18149">removeEdgeFromVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structVehiclePath.html">PvehiclePath</a> pvp);
<a name="l00200"></a>00200 
<a name="l00213"></a>00213 <span class="keywordtype">bool</span> <a class="code" href="vehiclePath_8h.html#a0ac435b8a1d7572f0c4a52dee4bf33fb">deleteEdgeFromVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pid, <a class="code" href="structVehiclePath.html">PvehiclePath</a> pvp);
<a name="l00214"></a>00214 
<a name="l00236"></a>00236 <span class="keywordtype">void</span> <a class="code" href="vehiclePath_8h.html#af06d0c5ff351457be13a1dff1bab4814">resetMemory</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path, <span class="keywordtype">int</span> direction);
<a name="l00237"></a>00237 
<a name="l00238"></a>00238 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ QUERY ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00246"></a>00246 <span class="comment"></span><a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="vehiclePath_8h.html#af9b0ff11a03068fa8e26b5327ad09436">getEdgeWalkedInVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> pe, <a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00247"></a>00247 
<a name="l00254"></a>00254 <span class="keywordtype">int</span> <a class="code" href="vehiclePath_8h.html#a9b645f7abbbaeeb2dadf6ebd6cf32ce7">getEdgeWalkedTimesInVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> p_edge, <a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path);
<a name="l00255"></a>00255 
<a name="l00260"></a>00260 <span class="keywordtype">int</span>* <a class="code" href="vehiclePath_8h.html#a7f311c535e072b7640fb62bbc01262cc">getNodeSetTouchedInVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path, <span class="keywordtype">int</span> N, <span class="keywordtype">int</span>* setLength);
<a name="l00261"></a>00261 
<a name="l00265"></a>00265 <span class="keywordtype">bool</span> <a class="code" href="vehiclePath_8h.html#a61f206a4875dd6e1d1e52885034475e5">isEdgeWalkedOnceInVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> p_edge, <a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path);
<a name="l00266"></a>00266 
<a name="l00279"></a>00279 <span class="keywordtype">bool</span> <a class="code" href="vehiclePath_8h.html#a041877b21905cb7cd97239002ef60718">isEdgeWalkedInVehiclePath</a>(<a class="code" href="structEdgeID.html">PedgeID</a> p_edge, <a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path);
<a name="l00280"></a>00280 
<a name="l00296"></a>00296 <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="vehiclePath_8h.html#a3099ca9329877c226b63c8c8bbf9e160">getNextEdgeInVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path);
<a name="l00297"></a>00297 
<a name="l00313"></a>00313 <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="vehiclePath_8h.html#a15b2a23efd8cdf6a7cf29ac10f3e12db">getPrevEdgeInVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00314"></a>00314 
<a name="l00333"></a>00333 <a class="code" href="structEdgeSol.html">PedgeSol</a> <a class="code" href="vehiclePath_8h.html#a4600421770bbb6e14e2a4f854acaee9b">getNearEdgeInVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path, <span class="keywordtype">int</span> direction);
<a name="l00334"></a>00334 
<a name="l00340"></a>00340 <span class="keywordtype">bool</span> <a class="code" href="vehiclePath_8h.html#a7f3199c28502e2365da4491bd9ac1ab9">isNodeTouchedInVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path, <span class="keywordtype">int</span> v);
<a name="l00341"></a>00341 
<a name="l00356"></a>00356 <a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="vehiclePath_8h.html#a0150055a43a57178d85bdde9fae92d7f">getEdgesNearNodeInVehiclePath</a>(<a class="code" href="structVehiclePath.html">PvehiclePath</a> path, <span class="keywordtype">int</span> node);
<a name="l00357"></a>00357 
<a name="l00358"></a>00358 <span class="comment">//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~STAMPE~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00364"></a>00364 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="vehiclePath_8h.html#ad8edd6a092564360e2881657c00d5b5b">printVehiclePath</a>(FILE* f, <a class="code" href="structVehiclePath.html">PvehiclePath</a> path);
<a name="l00365"></a>00365 
<a name="l00366"></a>00366 <span class="preprocessor">#endif </span><span class="comment">/* VEHICLEPATH_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="vehiclePath_8h.html">vehiclePath.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:36 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
